{% extends 'base_course.html' %}

{% block gcb_page_info %}
  if ('gcbSetPageInfo' in window) {
    gcbSetPageInfo({
      'page_type': 'preview',
    });
  }
{% endblock %}

{% block top_content %}
  <div class="gcb-cols">
    <div class="gcb-col-11 gcb-aside">

      {% include 'summary.html' %}
      {% include 'registration_module.html' %}
    </div>
  </div>
  {{course_info.preview.after_top_content_ends | safe}}
{% endblock %}

{% block main_content %}
  {% import 'macros.html' as macros %}
  <div style="margin-top: 20px;" class="gcb-cols">
    <div class="gcb-col-1">
    </div>
    <div class="gcb-col-9">

      <h1 class="gcb-schedule-headers">
        {# I18N: This should be interpreted as a noun. It is the title for the course schedule on the main contents page. #}
        {{ gettext('Schedule') }}
      </h1>

      <div id="gcb-main" role="main">
        <div class="gcb-nav gcb-nav-full" id="gcb-nav-y">
          <ul>
            {% for unit in units %}
              {{ macros.render_unit_title(
                  unit,
                  progress=None,
                  is_progress_recorded=False,
                  transient_student=True,
                  can_see_drafts=can_see_drafts,
                  include_link=False,
                  css_class='',
                  target_url=None) }}
            {% endfor %}
          </ul>
        </div>
      </div>

    </div>
  </div>
  {{course_info.preview.after_main_content_ends | safe}}
{% endblock %}
